package com.learn.spring.cloud.web.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * WebController-
 *
 * @author xing.wang
 * @date 2024/9/20
 */
@RestController
@RequestMapping("/web")
public class WebController {
    @Value("${server.port}")
    private String serverPort;

    @RequestMapping("/get")
    public String get(){
        return "web get info port:"+serverPort;
    }
}
